package com.atguigu01.throwable;

/**
 * ClassName: ErrorTest
 * Package: com.atguigu01.throwable
 * Description:
 *
 * @Author ZY
 * @Create 15:43
 * @Version 1.0
 */
public class ErrorTest {
    public static void main(String[] args) {

        //举例1:  StackOverflowError:栈内存溢出的错误
//        main(args);


        //举例2:  OutOfMemoryError:堆内存溢出的错误
//        byte[] arr = new byte[1024*1024*1024];


    }
}
